package io.renren.service;

import com.alibaba.fastjson.JSONObject;
import io.renren.common.page.PageData;
import io.renren.common.service.CrudService;
import io.renren.common.utils.Result;
import io.renren.dto.CollarDTO;
import io.renren.entity.CollarEntity;
import io.renren.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 * 辅材领用表
 *
 * @author 罗胜平 781757616@qq.com
 * @since 1.0.0 2019-11-22
 */
public interface CollarService extends CrudService<CollarEntity, CollarDTO> {

    Result updateExamine(CollarDTO dto, UserEntity entity);
    void saveCollarOrder(JSONObject params, UserEntity entity);

    List<CollarDTO> home(Map<String, Object> params,UserEntity entity);
    PageData<CollarDTO> pagesTorehouseClerk(Map<String, Object> params,UserEntity entity);
    PageData<CollarDTO> pageAdmin(Map<String, Object> params);
    PageData<CollarDTO>  getOrder(Map<String, Object> params, UserEntity entity);
    //查询订单未处理的状态
    CollarDTO getTotal(Long chedId, Long clerkId,Long canteenId,int status);
}